<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head th:replace="/layout :: htmlhead" th:with="title='后台管理'">
</head>
<body>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-form-item" lay-filter="searchForm">
                <form class="layui-form" method="post">
                    <label class="layui-form-label">配置类别</label>
                    <div class="layui-input-inline">
                        <select id="optionKindSearch" name="option_kind">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <label class="layui-form-label">配置名称</label>
                    <div class="layui-input-inline">
                        <input id="optionParaSearch" class="layui-input" type="text"/>
                    </div>
                </form>
                <div class="layui-input-inline">
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    <button class="layui-btn" lay-submit="" lay-filter="searchSubmit">查询</button>
                </div>
            </div>
            <div class="layui-card">
                <div class="layui-card-body">
                    <table class="layui-hide" id="table" lay-filter="table"></table>
                    <script type="text/html" id="table-title">
                        <h2><b>系统配置</b>&nbsp;&nbsp;&nbsp;<a class="layui-btn layui-btn-normal layui-btn-xs"
                                                            onclick="openAdd()"
                                                            shiro:hasPermission="sysoption:add">新建</a></h2>
                    </script>
                    <script type="text/html" id="table-toolbar">
                        <a class="layui-btn layui-btn-xs" lay-event="edit"
                           shiro:hasPermission="sysoption:edit">编辑</a>
                        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"
                           shiro:hasPermission="sysoption:del">删除</a>
                    </script>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="optionEdit" class="layer_self_wrap" style="display:none;">
    <form id="optionForm" lay-filter="optionForm" class="layui-form layui-form-pane" method="post" style="margin-top: 20px;" action="">
        <input type="hidden" name="id"/>
        <div class="layui-form-item">
            <label class="layui-form-label">配置类别</label>
            <div class="layui-input-inline">
                <select name="option_kind">
                    <option value="">请选择</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">配置名称</label>
            <div class="layui-input-inline">
                <input name="option_params" lay-verify="required" class="layui-input" type="text"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">配置值</label>
            <div class="layui-input-inline">
                <input name="option_value" class="layui-input" type="text"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">配置代码</label>
            <div class="layui-input-inline">
                <input name="option_des" class="layui-input" type="text"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">配置注释</label>
            <div class="layui-input-inline">
                <input name="option_organ" class="layui-input" type="text"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否启用</label>
            <div class="layui-input-inline">
                <select name="is_stop">
                    <option value="1">启用</option>
                    <option value="0">不启用</option>
                </select>
            </div>
        </div>
    </form>
</div>
<script th:src="@{/js/configManager/sysoption.js}"></script>
</body>
</html>